package com.yuda.system.fegin;

import com.yuda.common.core.domain.R;
import com.yuda.common.core.web.domain.AjaxResult;
import com.yuda.system.api.domain.SysDept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 *  增删改查 营地项目中的 部门表
 */
@FeignClient(contextId = "remoteCampDeptFegin", value = "yuda-modules-campsite",fallbackFactory = RemoteCampDeptFeginFallbackFactory.class)
public interface RemoteCampDeptFegin {

    @PostMapping("/dept")
    public R<AjaxResult> add(@RequestBody SysDept dept);

    @PutMapping("/dept")
    public R<AjaxResult> edit(@RequestBody SysDept dept);


    @DeleteMapping("/dept/{deptId}")
    public R<AjaxResult> remove(@PathVariable("deptId") Long deptId);

}
